package org.application.calculator.logic;

public class NumericNode implements Node{

	private Double value;
	
	public NumericNode(double value){
		this.value = value;
	}
	
	@Override
	public String toString(){
		if (value < 0){
			return "( " + value.toString() + " )";
		}else{
			return value.toString();
		}
	}
	
	public double evaluate(){
		return value;
	}
}
